package com.aco.party.enums;

/**
 * Created by flying on 3/16/2016 0016.
 */
public enum MetaTypeEnum {
    产品类型("1","产品类型"),
    平台类型("2","平台类型"),
    公司类型("3","公司类型"),
    大咖类型("4","大咖类型"),
    词条类目("5","词条类目"),
    NULL("0","");
    private String value;
    private String desc;

    MetaTypeEnum(String value, String desc){
        this.value = value;
        this.desc = desc;
    }

    public static MetaTypeEnum getMetaTypeEnum(String value){
        for (MetaTypeEnum type : MetaTypeEnum.values()) {
            if(type.value.equals(value))
                return type;
        }
        return NULL;
    }

    public String getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
